/**
 * Project: push-center-biz-core
 * 
 * File Created at 2014年10月9日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package com.greenline.push.core.pushcenter.impl;

import java.util.Date;

import javax.annotation.Resource;

import com.greenline.push.core.pushcenter.TaskLogManager;
import com.greenline.push.dal.pushcenter.TaskLogDAO;
import com.greenline.push.dal.pushcenter.dataobject.TaskLogDO;
import com.greenline.push.dal.query.TaskLogQuery;

/**
 * @Type TaskSyncManagerImpl
 * @Desc
 * @author shuai.zuo
 * @date 2014年10月9日
 * @Version V1.0
 */
public class TaskLogManagerImpl implements TaskLogManager {
    @Resource
    private TaskLogDAO taskLogDAO;

    @Override
    public Long addTaskLog(TaskLogDO taskLog) {
        return taskLogDAO.addTaskLog(taskLog);
    }

    @Override
    public void updateTaskLog(TaskLogDO taskLog) {
        taskLogDAO.updateTaskLog(taskLog);
    }

    @Override
    public Date getTaskLogLastTime(String taskType) {
        return taskLogDAO.getTaskLogLastTime(taskType);
    }

    @Override
    public TaskLogQuery queryTaskLog(TaskLogQuery query) {
        return taskLogDAO.queryTaskLog(query);
    }

}
